package com.ruoyi.yyq.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 救援订单对象 car_rescue_task
 * 
 * @author ruoyi
 * @date 2025-05-10
 */
public class CarRescueTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键编号 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long mid;

    /** 发起时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发起时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 救援类型id */
    @Excel(name = "救援类型id")
    private Long typeId;

    /** 当前位置/起点 */
    @Excel(name = "当前位置/起点")
    private String position;

    /** 终点 */
    @Excel(name = "终点")
    private String end;

    /** 求助人 */
    @Excel(name = "求助人")
    private String name;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private Long carNum;

    /** 车型 */
    @Excel(name = "车型")
    private String carType;

    /** 求助信息描述 */
    @Excel(name = "求助信息描述")
    private String description;

    /** 状态（0求助中，1已接单，2超时） */
    @Excel(name = "状态", readConverterExp = "0=求助中，1已接单，2超时")
    private Long status;

    /** 删除状态 */
    private Long deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }

    public void setMid(Long mid) 
    {
        this.mid = mid;
    }

    public Long getMid() 
    {
        return mid;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }

    public void setEnd(String end) 
    {
        this.end = end;
    }

    public String getEnd() 
    {
        return end;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setCarNum(Long carNum) 
    {
        this.carNum = carNum;
    }

    public Long getCarNum() 
    {
        return carNum;
    }

    public void setCarType(String carType) 
    {
        this.carType = carType;
    }

    public String getCarType() 
    {
        return carType;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("mid", getMid())
            .append("time", getTime())
            .append("typeId", getTypeId())
            .append("position", getPosition())
            .append("end", getEnd())
            .append("name", getName())
            .append("phone", getPhone())
            .append("carNum", getCarNum())
            .append("carType", getCarType())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("deleted", getDeleted())
            .toString();
    }
}
